
import 'package:flutter_getx/core/utils/event_manage.dart';

void imCoreExt(){
  //导入ext
}

extension StringExtension on String? {
  String get nullSafe => this ?? '';
}

extension ListExt on List? {
  List get nullSafe => this ?? [];
}

/// EventBus 扩展
extension EventExtension on Object? {
  void postEvent(){
    EventSingleton.eventBus.fire(this);
  }
}